﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;

namespace ProjScan.Config
{
	// Token: 0x0200032D RID: 813
	internal class GlobalSettingsConfig : BaseConfig
	{
		// Token: 0x060012F1 RID: 4849 RVA: 0x0005B270 File Offset: 0x00059470
		public override void Init()
		{
			this.hasSeparateTargetDirSettings = false;
			this.hasWhiteList = false;
			this.hasfailedData = true;
			this.hasFixRule = true;
			bool flag = this.dicRuleConfig == null;
			if (flag)
			{
				this.dicRuleConfig = new Dictionary<string, RuleConfig>();
			}
			else
			{
				this.dicRuleConfig.Clear();
			}
		}

		// Token: 0x060012F2 RID: 4850 RVA: 0x00008E59 File Offset: 0x00007059
		public override void LoadConfig(JObject data)
		{
			this._rootConfig = (JObject)data["Global_Settings_Check"];
			this.ResolveRule();
		}

		// Token: 0x060012F3 RID: 4851 RVA: 0x00008E79 File Offset: 0x00007079
		public override void SaveConfig(JObject data)
		{
			data.Add("Global_Settings_Check", this.SaveJObjectRule());
		}
	}
}
